import request from '@/utils/request'

export function get(id) {
  return request({
    baseURL: process.env.VUE_APP_FILE,
    url: `/api/v1/fileServer/binaryObjects/${id}`,
    method: 'get'
  })
}

export function create(data) {
  return request({
    baseURL: process.env.VUE_APP_FILE,
    url: `/api/blobService/blobs`,
    method: 'post',
    data
  })
}
